Skip to content

Conversation

IdrissRio
Copy link
Contributor

See internal PR

@IdrissRio IdrissRio added the depends on internal PR This PR should only be merged in sync with an internal Semmle PR label Sep 19, 2025
@github-actions github-actions bot added the Java label Sep 19, 2025
@IdrissRio IdrissRio marked this pull request as ready for review October 1, 2025 10:07
@IdrissRio IdrissRio requested a review from a team as a code owner October 1, 2025 10:07
@Copilot Copilot AI review requested due to automatic review settings October 1, 2025 10:07
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds integration tests for Maven 4 compatibility, specifically testing scenarios where Maven 3 attempts to fetch Maven 4 wrapper binaries. The test ensures that CodeQL's Java analysis correctly handles this version mismatch scenario.

  • Sets up a test environment with Maven 3.6.0 attempting to use Maven wrapper that references Maven 3.9.11
  • Validates that Java code extraction and analysis works correctly in this configuration
  • Includes test infrastructure with Python test runner and CodeQL query validation

Reviewed Changes

Copilot reviewed 9 out of 10 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
test.py Python test script that downloads Maven 3.6.0 and configures environment for wrapper testing
methods.ql CodeQL query to extract and validate Java methods from the test application
methods.expected Expected output from the CodeQL query showing detected Java methods
Test.java Simple Java test class with main method and trivial method for validation
pom.xml Maven project configuration specifying Java 11 and basic compiler setup
mvnw.cmd Maven wrapper script for Windows environments
mvnw Maven wrapper script for Unix-like environments
maven-wrapper.properties Configuration specifying Maven 3.9.11 distribution URL
ExtractionErrors.qlref Reference to extraction error diagnostics query

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
depends on internal PR This PR should only be merged in sync with an internal Semmle PR Java
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants